#!/usr/bin/env python
# encoding: utf-8


from django.urls import re_path
from django.views.decorators.cache import cache_page

from . import views

app_name = "blog"
urlpatterns = [
    # re_path(r'^$', cache_page(60 * 15)(views.IndexView.as_view()), name='index'),
    re_path(r'', views.IndexView.as_view(), name='index'),
    re_path(r'^article/(?P<article_id>\d+)$', views.ArticleDetailView.as_view(), name='detail'),
    re_path(r'^category/(?P<category_name>\w+)$', views.CategoryDetailView.as_view(), name='category_detail'),
    re_path(r'^author/(?P<author_name>\w+)$', views.AuthorDetailView.as_view(), name='author_detail'),
    re_path(r'^tags/(?P<tag_name>\w+)$', views.TagDetailView.as_view(), name='tag_detail'),
    re_path(r'^test/123$', views.QuestionView.as_view(), name='test_question')

]
